<template>
  <div class="polygon">
    <h3>polygon</h3>
  </div>
</template>
<script setup>
import { Leafer, Polygon } from 'leafer-ui';
const leafer = new Leafer({
  view: window
})
const polygon = new Polygon({
  points: [10, 90, 20, 60, 40, 80, 60, 40, 75, 50, 90, 10, 100, 90, 100, 90, 10, 90],
  curve: 0.5,
  fill: '#f2f2f2'
})
leafer.add(polygon)
</script>
<style scoped></style>